package com.woniuxy.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;

/**
 * (ShopOrders)实体类
 *
 * @author makejava
 * @since 2025-07-10 11:41:15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ShopOrders implements Serializable {
    private static final long serialVersionUID = 881423660176659852L;
    /**
     * id
     */
    private Long id;
    /**
     * 订单编号
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long orderNumber;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 订单总金额
     */
    private Double totalAmount;
    /**
     * 支付金额
     */
    private Double paymentAmount;
    /**
     * 1-待支付，2-已支付，3-已发货，4-已完成，5-已取消
     */
    private Integer status;
    /**
     * 1-支付宝，2-微信支付
     */
    private Integer paymentType;
    /**
     * 支付时间
     */
    private Date paymentTime;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;
    private String payType;
    private  String idCard;
}

